package com.ejzblog.mall.model.req.reg;

import com.ejzblog.mall.validation.group.CreateAction;
import com.ejzblog.mall.validation.group.OneReqAction;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * Description：
 * </p>
 *
 * @author Mango
 * @version v1.0.0
 * @ProjectName: community-mall-master
 * @Package: com.ejzblog.mall.model.req.reg
 * @date 2021-07-14 15:48
 * @see com.ejzblog.mall.model.req.reg
 */
public class RegReq {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = {OneReqAction.class, CreateAction.class})
    private String phone;

    /**
     * 注册密码
     */
    @NotBlank(message = "注册密码不能为空", groups = {CreateAction.class})
    private String password;

    /**
     * 验证码类型
     */
    @NotBlank(message = "验证码类型不能为空", groups = {OneReqAction.class, CreateAction.class})
    private String type;

    /**
     * 验证码类型
     */
    @NotBlank(message = "验证码不能为空", groups = {OneReqAction.class, CreateAction.class})
    private String code;

}
